﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
///是book的属性设定
/// </summary>
public class bookatt
{   //书的Id是int类型是自动获取。
    private string _bookId;
    private string _bName;
    DateTime _bDate;

    private string _bImageurl;
    private string _bContent;
    private string _bRemarks;

  
	public bookatt(string bookId,string bName)
	{
        if (String.IsNullOrEmpty(bookId)) throw new ArgumentException(Messages.UndefinedbName);
        if (String.IsNullOrEmpty(bName)) throw new ArgumentException(Messages.UndefinedbName);
        _bookId = bookId;
        _bName = bName;
        
	}
    public string BookId
    {
        get { return String.IsNullOrEmpty(_bookId) ? String.Empty : _bookId; }
       set { _bookId = value; }
    }
    public string BName
    {
        get { return String.IsNullOrEmpty(_bName) ? String.Empty : _bName; }
        set { _bName = value; }
    } 
    public DateTime BDate
    {
        get { return _bDate; }
        set { _bDate = value; }
    } 
    public string BImageurl
    {
        get { return String.IsNullOrEmpty(_bImageurl) ? String.Empty : _bImageurl; }
        set { _bImageurl = value; }
    } 
    public string BContent
    {
        get { return String.IsNullOrEmpty(_bContent) ? String.Empty : _bContent; }
        set { _bContent = value; }
    }
     public string BRemarks
    {
        get { return String.IsNullOrEmpty(_bRemarks) ? String.Empty : _bRemarks; }
        set { _bRemarks = value; }
    }

}
